//
//  AppDelegate.h
//  CPICApp
//
//  Created by lizhiwei on 13-2-27.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import <UIKit/UIKit.h>


#define kAppKey             @"1876068724"
#define kAppSecret          @"c6dc5fdc010cceab368cb9e212bcaf5c"
#define kAppRedirectURI     @"https://api.weibo.com/oauth2/default.html"

#ifndef kAppKey
#error
#endif

#ifndef kAppSecret
#error
#endif

#ifndef kAppRedirectURI
#error
#endif

@class ViewController;
@class SinaWeibo;
@class LoginViewController;
@interface AppDelegate : NSObject <UIApplicationDelegate>
{
    UIWindow *window;
    ViewController *viewController;
    NSString * InfoTitle;
    UINavigationController *unc;
    SinaWeibo *sinaweibo;
    NSString * CityCode;
}

@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, retain) NSString * InfoTitle;
@property (nonatomic, retain) ViewController *viewController;
@property (nonatomic, retain) UINavigationController *unc;
+ (AppDelegate*) app;
@property (readonly, nonatomic) SinaWeibo *sinaweibo;
@property(strong,nonatomic)LoginViewController *loginViewCtrl;
@property(nonatomic,retain) NSString * CityCode;
@property NSInteger iLoginorAccountTag;//登录界面或者是账号绑定界面的标志





//begin 全局变量,用以标记各功能模块是否完整使用，判断是否需要评价
@property(nonatomic)BOOL bPreferentialInformation;//优惠信息
@property(nonatomic)BOOL bServiceAppointment;//服务预约
@property(nonatomic)BOOL bIntegralManagement;//积分管理
@property(nonatomic)BOOL bInsurancePolicySearch;//保单查询
@property(nonatomic)BOOL bClaimSearch;//理赔查询
@property(nonatomic)BOOL bKnowledgeInsurance;//保险知识
@property(nonatomic)BOOL bServiceNotice;//提醒服务
@property(nonatomic)BOOL bSeckillArea;//秒杀专区
@property(nonatomic)BOOL bServiceRemind;//服务提醒
@property(nonatomic)BOOL bCarsetting;//车辆设置
@property(nonatomic)BOOL bContinueInsurance;//我想续保
//end
@end
